package com.finance.system.accountbook.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消费记录表，存放每笔消费的信息
 * </p>
 *
 * @author whdong
 * @since 2019-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_cash_record")
@ApiModel(value="CashRecordEntity对象", description="消费记录表，存放每笔消费的信息")
public class CashRecordEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "创建用户")
    private Long userId;

    @ApiModelProperty(value = "支出金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createAt;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "删除标记")
    private Integer deleteFlag;

    @ApiModelProperty(value = "消费日期")
    private LocalDateTime consumeAt;

    @ApiModelProperty(value = "消费类型")
    private String consumeType;

    @ApiModelProperty(value = "结算标志")
    private Integer closeFlag;

    @ApiModelProperty(value = "所属账本id")
    private Long groupId;

    @ApiModelProperty(value = "参与人的id,用逗号分割")
    private String participant;

    @ApiModelProperty(value = "账本id")
    private Long accountBookId;


}
